using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BaseComp : MonoBehaviour
{
    protected Entity _entity;
    public Entity entity
    {
        get => _entity;
    }
    // Start is called before the first frame update
    protected virtual void Awake()
    {
        _entity = GetComponent<Entity>();
        if(_entity == null)
            _entity = GetComponentInParent<Entity>();
    }


}
